<?php
    session_start();
    include '../trang editor/tintunggiay/connect.php';
?>
<html>
    
    <head>
        <title>
            Them tin
        </title>
    </head>
    <body>
        <?php
            $r="select * from user where id_user=1";
            $q=  mysqli_query($dbc, $r);
            $f=  mysqli_fetch_array($q);
            $_SESSION['id']=$f['IDUser'];
        ?>
        <form method="post" action="xulidemoid.php">
        <table>
            <thead>
                <tr>
                    <th>Tieu de</th>
                    <td>ND</td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <th><input name="tieude" type="text"/></th>
                    <td><input name="noidung" type="text"/><input name="idnhanvien" value="<?php echo $_SESSION['id']; ?>" type="hidden"/></td>
                </tr>
                <tr>
                    <th colspan="2"><input name="themtin" type="submit" value="Them"/></th>
                </tr>
            </tbody>
        </table>
        </form>
    </body>
</html>